package mvc.bezier;


import java.util.ArrayList;

import mvc.CurveModel;

import org.geom.Vector3D;
import org.geom.curve.Bezier;

public class BezierModel extends CurveModel {

	//-------------------------------------------------------- classvars
	public BezierModel(Bezier curve) {
		super(curve);
	}
	
	//-------------------------------------------------------- Bezier
	
	protected void setControlPoints(ArrayList<Vector3D> pts) {
		((Bezier) curve).setControlPoints(pts);
		dirty = true;
	}
	protected ArrayList<Vector3D> getControlPoints() {
		dirty = true;
		return ((Bezier) curve).getControlPoints();
	}
	@Override
	public Object getData() {
		// TODO Auto-generated method stub
		return curve;
	}

}
